<?php
    $args = array(
        'meta_key' => 'training',
        'meta_value' => 1,
        'post_type' => 'page',
        'suppress_filters'=>0,
        'orderby'          => 'post_date',
        'order'            => 'DESC',
    );
    $posts_n3 = get_posts($args);
    $meta_values = array();
    foreach($posts_n3 as $ $p3){
        $_meta_values = is_array(get_field('tab_customer', $p3->ID)) ? get_field('tab_customer', $p3->ID) : array();
        $meta_values = array_merge($_meta_values,$meta_values);
    }
?>
        <section class="box-partner animated-area">
            <div class="fix">
                <div class="owl-carousel" id="slide-partner">
                    <?php $id_c = 0; $s_n = 0.6; foreach($meta_values as $m): if($m['is_hot'] == 1): ?>
                    <div class="item animated" data-animation="bounce-in" data-animation-delay="<?php echo $s_n;?>s">
                        <a href="<?php echo $m['link_detail'];?>" title="<?php echo $m['name'];?>">
                            <img src="<?php echo $m['logo']['url'];?>" width="140" height="70" alt=""/>
                        </a>
                    </div>
                    <?php  $s_n+=0.3; if($id_c == 6) break;$id_c++; endif;endforeach;?>
                </div>
            </div>
        </section><!--//box-partner-->
<?php //endif;?>